package com.zzhrtech.wgzx_cityzen.beans.me;

import java.util.List;

/**
 * Created by renxiangpeng on 16/8/12.
 */
public class JfmxListBean {
    String code;
    String msg;
    List<Data> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public static class Data{
        String mid;
        String citizenId;
        String numMsg;
        String num;
        String msg;
        String shijian;
        boolean ifadd;

        public String getMid() {
            return mid;
        }

        public void setMid(String mid) {
            this.mid = mid;
        }

        public String getCitizenId() {
            return citizenId;
        }

        public void setCitizenId(String citizenId) {
            this.citizenId = citizenId;
        }

        public String getNumMsg() {
            return numMsg;
        }

        public boolean ifadd() {
            return getNumMsg().startsWith("+");
        }

//        public void setIsadd(boolean isadd) {
//            this.ifadd = isadd;
//        }

        public void setNumMsg(String numMsg) {
            this.numMsg = numMsg;
        }

        public String getNum() {
            return num;
        }

        public void setNum(String num) {
            this.num = num;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public String getShijian() {
            return shijian;
        }

        public void setShijian(String shijian) {
            this.shijian = shijian;
        }
    }

    public boolean isSuccess(){
        return code.equals("0");
    }
}
